@import '../Root.scss';

$parentPaddingWidth: 24px;
$border: 1px solid #e6e6e6;

#panel_content-course {
  padding: 0 !important;
  height: 100%;
  margin: -$parentPaddingWidth;
  margin-top: -($parentPaddingWidth - 1);

  .course-operation-section {
    position: relative;
    background: #ffffff;
    height: 52px;
    width: auto;
    border: $border;
    border-width: 0 1px 1px 0;
    line-height: 51px;
    font-size: 22px;
    box-sizing: border-box;

    a {
      float: right;
      color: #555555;
      background: #ecf6fd;
      border: $border;
      border-width: 0 0 1px 1px;
      width: 50px;
      text-align: center;
    }

    a:hover {
      color: #f86cc1;
    }
  }

  #course_left_box {
    height: 100%;
  }

  #course_list_side {
    position: relative !important;
    height: 100% !important;
    min-height: 100vh;
    box-sizing: border-box;
    border-right: $border;

    > div:last-of-type {
      right: 0 !important;
    }
  }

  #course_edit_side {
    padding: 0 !important;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    padding: 13px $contentPadding $contentPadding;
  }

  .ant-menu {
    user-select: none;

    /*> li.ant-menu-submenu:first-child {
      border-top: $border;
    }*/

    .ant-menu-submenu {
      .ant-menu-submenu-title {
        height: auto;
        cursor: default;
        color: #555555;
        border-bottom: $border;
        margin: 0;

        .course-name {
          font-size: 16px;
          font-weight: bold;
          vertical-align: middle;
        }

        .course-description {
          word-break: break-all;
          word-wrap: break-word;
          white-space: normal;
          line-height: 20px;
          color: #999999;
          padding-bottom: 15px;
          font-size: 12px;
        }

        .course-edit {
          cursor: pointer;
          font-size: 16px;
          vertical-align: middle;
          color: #22c920;
        }

        .ant-menu-submenu-arrow {
          top: 30%;
          right: 10px;
        }
      }

      .ant-menu-submenu-title:hover {
        background: #eeeeee;
      }
    }

    $lessonBorder: 1px solid #f2f2f2;

    .ant-menu-item-group-title {
      background: #f9f9f9;
      border-bottom: $lessonBorder;
      padding-left: 25px;
    }

    .ant-menu-item-group-list li:last-child {
      border-bottom: $border;
    }

    .lesson-operation-section {
      a.operation-button {
        float: right;
        // background: #feecf7;
        border: $lessonBorder;
        border-width: 0 0 1px 1px;
        width: 40px;
        height: 38px;
        margin-top: -8px;
        margin-bottom: -8px;
        text-align: center;
        line-height: 40px;
        color: #555555;
      }

      a.operation-button:first-of-type {
        margin-right: -16px;
      }

      a.operation-button:hover {
        color: #f86cc1;
      }
    }
  }

  .ant-menu-inline,
  .ant-menu-vertical {
    border: 0;
  }
}
